package Utils;


/**
 * 处理字符串工具类
 * @author zgy
 *
 */
public class StringDealHelper {
	
	public static String getDeviceSeq(String head,String middle,String end,int length) {
		StringBuffer buffer = new StringBuffer();
		buffer.append(head);
		while(buffer.length()<length-end.length()){
			buffer.append(middle);
		}
		buffer.append(end);
		return buffer.toString();
	}
	
	public static void main(String[] args){
		System.out.println(getDeviceSeq("YB","0","1",12));
	}
}
